package com.google.code.sip.ucenter.dao.mongo;

import java.util.HashMap;
import java.util.Map;

import com.google.code.sip.core.dao.mongo.GenericMongoDao;
import com.google.code.sip.ucenter.dao.PasswordActionDao;
import com.google.code.sip.ucenter.model.ResetPasswordEvent;

public class PasswordActionDaoImpl extends
		GenericMongoDao<ResetPasswordEvent, String> implements
		PasswordActionDao {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.google.code.sip.ucenter.dao.mongo.PasswordActionDao#getByUser(java.lang
	 * .String, java.lang.String)
	 */
	public ResetPasswordEvent getByUser(String username, String password) {
		Map<String, Object> filter = new HashMap<String, Object>();
		filter.put("username", username);
		filter.put("password", password);
		return getByProperties(filter);
	}
}
